package com.emergency.embackend.mapper;

import com.emergency.embackend.common.PageParams;
import com.emergency.embackend.entity.Article;
import com.emergency.embackend.entity.Video;
import com.emergency.embackend.param.VideoDataParam;
import com.emergency.embackend.param.VideoParam;
import com.emergency.embackend.vo.VideoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author chddd
 * @description
 * @create 2024/2/25 22:13:14
 */
@Mapper
public interface WikiVideoMapper {
    List<Video> getVideoData(VideoDataParam videoDataParam);

    void delete(Long videoId);

    void deleteByTypeId(Long typeId);

    void update(VideoParam videoParam);

    void add(VideoParam videoParam);

    VideoVO getOne(Long videoId);

    List<Video> selectVideosByCreateTimeDesc();

    Long getViewCount(@Param("videoId") Long videoId);

    List<Video> getHotVideo();


    List<Long> getTypeIds(@Param("videoIds")List<Long> videoIds);

    List<Video> getHistoryArticle(@Param("videoIds") List<Long> videoIds);
}
